home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _D9F3D5BDFDFF440A9B033142E3B434B8 < prev    next >
Encoding:
Text File  |  2004-06-16  |  4.9 KB  |  220 lines

  1. $SPECPOW(f, 1)
  2.  
  3. shader()
  4. {//gffx
  5.     SurfaceID(SRFTYPE)
  6.     Cull("cw")
  7.     Shaderquality(3)
  8.     pass()
  9.     {
  10.         Lighting()
  11.         Pixelshader("RoadSnow14.psh")
  12.  
  13.         !include("__TerrainColormap.mtt")
  14.         !include("__TerrainDetail1.mtt")
  15.         !include("__DetailsMask.mtt")
  16.         !include("__Clouds.mtt")
  17.         !include("__Tex1.mtt")
  18.  
  19.         AmbientColor(0, 0, 0, 1.000)
  20.         DiffuseColor(0, 0, 0, 1.000)
  21.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  22.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  23.         SpecularPow(SPECPOW)
  24.     }
  25.  
  26.     lightpass()
  27.     !include("SpotShadowmap.mtt")
  28.     !include("SpotRoadSnow14.mtt")
  29. }
  30.  
  31.  
  32. shader()
  33. {// >=gf3
  34.     SurfaceID(SRFTYPE)
  35.     Shaderquality(3)
  36.     Cull("cw")
  37.     pass()
  38.     {
  39.         Pixelshader("TerrainSnow11_1.psh")
  40.  
  41.         !include("__TerrainColormap.mtt")
  42.         !include("__TerrainDetail1.mtt")
  43.         !include("__DetailsMask.mtt")
  44.         !include("__CubeMap.mtt")
  45.  
  46.     }
  47.     pass()
  48.     {
  49.         Lighting()
  50.         Pixelshader("Road11_2.psh")
  51.         !include("__Tex1.mtt")
  52.         !include("__TerrainColormap.mtt")
  53.         !include("__Clouds.mtt")
  54.  
  55.         AmbientColor(0, 0, 0, 1.000)
  56.         DiffuseColor(0, 0, 0, 1.000)
  57.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  58.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  59.         SpecularPow(SPECPOW)
  60.         DepthFunc("lequal", 0)
  61.         BlendFunc("src_alpha", "inv_src_alpha")
  62.     }
  63.     pass()
  64.     {
  65.         Pixelshader("TerrainSnow11_2.psh")
  66.  
  67.         !include("__TerrainColormap.mtt")
  68.         !include("__Clouds.mtt")
  69.         DepthFunc("lequal", 0)
  70.         BlendFunc("zero", "inv_src_color")
  71.         BlackFog()
  72.     }
  73.  
  74.     lightpass()
  75.     !include("SpotShadowmap.mtt")
  76.     !include("SpotRoadSnow.mtt")
  77. }
  78.  
  79.  
  80. shader()
  81. {// >=gf3
  82.     SurfaceID(SRFTYPE)
  83.     Shaderquality(2)
  84.     Cull("cw")
  85.     pass()
  86.     {
  87.         Lighting()
  88.         Pixelshader("RoadSnowLow.psh")
  89.  
  90.         !include("__TerrainColormap.mtt")
  91.         !include("__TerrainDetail1.mtt")
  92.         !include("__Tex1.mtt")
  93.         !include("__DetailsMask.mtt")
  94.  
  95.         AmbientColor(0, 0, 0, 1.000)
  96.         DiffuseColor(0, 0, 0, 1.000)
  97.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  98.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  99.         SpecularPow(SPECPOW)
  100.     }
  101.  
  102.     lightpass()
  103.     !include("SpotShadowmapLow.mtt")
  104.     !include("SpotRoadSnow.mtt")
  105. }
  106.  
  107. shader()
  108. {// >=gf3
  109.     SurfaceID(SRFTYPE)
  110.     Shaderquality(1)
  111.     Cull("cw")
  112.     pass()
  113.     {
  114.         Lighting()
  115.         Pixelshader("RoadSnowVeryLow.psh")
  116.  
  117.         !include("__TerrainColormap.mtt")
  118.         !include("__TerrainDetail1.mtt")
  119.         !include("__Tex1.mtt")
  120.  
  121.         AmbientColor(0, 0, 0, 1.000)
  122.         DiffuseColor(0, 0, 0, 1.000)
  123.         SpecularColor(1.000, 1.000, 1.000, 1.000)
  124.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  125.         SpecularPow(SPECPOW)
  126.     }
  127.  
  128.     lightpass()
  129.     !include("SpotShadowmapVeryLow.mtt")
  130.     !include("SpotRoadSnow.mtt")
  131. }
  132.  
  133. shader()
  134. {//gf2
  135.     SurfaceID(SRFTYPE)
  136.     Cull("cw")
  137.     Shaderquality(1)
  138.     pass()
  139.     {
  140.         tmu()
  141.         {
  142.             TexGen("planar")
  143.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  144.             texture()
  145.             {
  146.                 Image(%colortexture)
  147.                 addressfunc("clamp", "clamp", "clamp")
  148.             }
  149.             ColorOp("mul_add", "texture_a", "inv_tfactor_a", "tfactor_a")
  150.         }
  151.  
  152.         tmu()
  153.         {
  154.             ColorOp("mul", "tfactor", "current", "current")
  155.         }
  156.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  157.     }
  158.     lightpass()
  159.     !include("SpotShadowmapVeryLow.mtt")
  160.     !include("spot_spotmap.mtt")
  161.     pass()
  162.     {
  163.         tmu()
  164.         {
  165.             texture()
  166.             {
  167.                 Mapchannel(0)
  168.                 Image(TEXTURE1)
  169.                 !include(TEX1OPTIONSFILE)
  170.             }
  171.             ColorOp("arg1", "inv_texture", "current", "current")
  172.         }
  173.         DepthFunc("lequal", 0)
  174.         BlendFunc("zero", "inv_src_color")
  175.         BlackFog()
  176.     }
  177.  
  178.  
  179. }
  180.  
  181. shader()
  182. {//gf2
  183.     SurfaceID(SRFTYPE)
  184.     Cull("cw")
  185.     Shaderquality(0)
  186.     pass()
  187.     {
  188.         tmu()
  189.         {
  190.             TexGen("planar")
  191.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  192.             texture()
  193.             {
  194.                 Image(%colortexture)
  195.                 addressfunc("clamp", "clamp", "clamp")
  196.             }
  197.             ColorOp("arg2", "texture", "tfactor", "current")
  198.             AlphaOp("mul_add", "texture", "inv_tfactor", "tfactor")
  199.         }
  200.         tmu()
  201.         {
  202.             texture()
  203.             {
  204.                 Mapchannel(0)
  205.                 Image(TEXTURE1)
  206.                 !include(TEX1OPTIONSFILE)
  207.             }
  208.             ColorOp("mul", "texture", "current", "current")
  209.             AlphaOp("arg2", "texture", "current", "current")
  210.         }
  211.         BlendFunc("src_alpha", "zero")
  212.         tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %ambient_a)
  213.     }
  214.     lightpass()
  215.     !include("SpotShadowmapVeryLow.mtt")
  216.     !include("spot_spotmap.mtt")
  217. }
  218.  
  219.  
  220.